home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15195 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.6 KB  |  34 lines

  1. Path: hoho.quake.net!usenet
  2. From: billf@jovial.com (Bill Foote)
  3. Newsgroups: comp.object,comp.lang.eiffel,comp.lang.c++,comp.lang.beta,comp.lang.java,comp.lang.sather
  4. Subject: Re: What Should An Exception Handling Do? -- Clarification of rules
  5. Date: 4 Apr 1996 04:16:56 GMT
  6. Organization: Jovial
  7. Message-ID: <4jvifo$h9c@hoho.quake.net>
  8. References: <4irn11$7ln@mimas.brunel.ac.uk> <4jdv0p$lnr@dscomsa.desy.de> <wpp.828370477@marie.physik.TU-Berlin.DE> <3161961F.1FEE8722@ids2.idsonline.com>
  9. NNTP-Posting-Host: l89.ip.quake.net
  10.  
  11. In article <3161961F.1FEE8722@ids2.idsonline.com>,
  12. Eric Vought  <adfh@ids2.idsonline.com> wrote:
  13.  
  14. >  (in the context of registering a callback to deal with the inability
  15. >   to acquire a resource, instead of throwing a resumable exception,
  16. >   much like set_new_handler in C++)
  17. >
  18. >Personally, I dislike the fact that Java does not allow method
  19. >references, as they would be ideal in this situation. How hard would it
  20. >be for them to implement references to static methods?
  21.  
  22. Without method references, there's always the command pattern.
  23.  
  24. Making small, single-purpose classes like this really isn't that painful
  25. in a language like Java (or Smalltalk, Eiffel, ...).  I find that what
  26. makes it painful in C++ is all the #include/Makefile nonsense I have to
  27. go through, but this isn't really the fault of the language:  it
  28. could be fixed with the proper tools (i.e. a good IDE).
  29. --
  30. Bill Foote                       |  L'homme est nΘ pour vivre dans les
  31. billf@jovial.com                 |  convulsions de l'inquiΘtude ou dans la
  32. http://www.jovial.com/~billf/    |  lΘthargie de l'ennui       -- Voltaire
  33.  
  34.